$(document).ready(function(){

    $("#submit").click(function(){
        var params = getInputParam("form");
        console.log("params", params);
        for (var k in params) {
            if (!params[k]) {
                return notify("请正确填银行卡信息");
            }
        }
        transfer(params);
       
    });
});

// 银行卡提交的ajax
function transfer(data) {
    $.ajax({
        type: "POST",//方法类型
        dataType: "json",//预期服务器返回的数据类型
        url: "/index.php/Home/info/bankcard" ,//url
        data: data,
        success: function (e) {
            if(e.type==1){
               // console.log('/index.php/Home/info/bankcardaddress/id/'.e.data');
                window.location.href='/index.php/Home/info/bankcardaddress/id/'+e.data;
                return;
            }
            notify(e.data);
        },
        error : function() {
            notify("异常！");
        }
    });
}